package com.fingard.dsp.bank.reqrespobj.elecbillquery;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.elecbillquery.detail.ReqB008HistoricalBillQryDetail;
import com.fingard.xml.XmlTextReader;

/**
 * Created by dalt on 2018/5/20.
 */
public class ReqB008HistoricalBillQry extends RequestBase{
    public ReqB008HistoricalBillQryDetail detail;
    private XmlTextReader xmlReader;

    public boolean readRecord() throws Exception {
        detail = null;
        if (xmlReader.read("/ATSYH/TransReq/TransParam")) {
            detail = new ReqB008HistoricalBillQryDetail(xmlReader.readedXElement);
            return true;
        } else {
            return false;
        }
    }

    public ReqB008HistoricalBillQry(XmlTextReader p_xmlReader, ReqRespHeader p_header) {
        reqHeader = p_header;
        xmlReader = p_xmlReader;
    }
}
